@include("user.head")
<div class="wrapper">
	<div class="col-xs-9 no_padding_both">
		<div class="col-xs-12 no_padding_both">
			<nav class="navbar navbar-default">
		      <div class="container-fluid no_padding_both">
		        <div class="collapse navbar-collapse no_padding_both" id="bs-example-navbar-collapse-6">
		          <ul class="nav navbar-nav no_padding_both">
		            <li class="active"><a href="javascript:void(0)">综合排序</a></li>
		          </ul>
		        </div>
		      </div>
		    </nav>
		</div>
		<div class="col-xs-12 no_padding_both dataList">
			@foreach ($data as $value)
			@if($value['type'] == 6)
			<div class="col-xs-4">
				<div class="col-xs-12 thumbnail">
					<a href="<%url('industry/project/detail?pid=')%><%$value['project']['id']%>">
						<img src="<%url('images')%>/<%$value['project']["uid"]%>/<%env('PROJECT_DIR')%>/<%$value['project']["image"]%>" style="width:200px;height:200px;" alt="" />
						<span class="col-xs-12">
							<h5><%$value['project']["name"]%></h5>
						</span>
						<span class="col-xs-12 product_des">
							<%mb_substr($value['project']["name"], 0, 20)%>
						</span>
						<span class="col-xs-12 product_btns">
							<button type="button" class="btn btn-info fl btn wanna_do" pid="">我要做</button>
						</span>
					</a>
				</div>
			</div>

			@elseif($value['type'] == 7)
			<div class="col-xs-4">
				<div class="col-xs-12 thumbnail">
					<a href="<%url('industry/tech/detail?tid=')%><%$value['tech']['id']%>">
						<img src="<%url('images')%>/<%$value['tech']["uid"]%>/<%env('TECH_DIR')%>/<%$value['tech']["image"]%>" style="width:200px;height:180px;" alt="" />
						<span class="col-xs-12">
							<h5><%$value['tech']["tech_name"]%></h5>
						</span>
						<span class="col-xs-12 product_des">
							<%mb_substr($value['tech']["description"], 0, 20)%>
						</span>
					</a>
				</div>
			</div>
			@elseif($value['type'] == 8)
			<div class="col-xs-4">
				<div class="col-xs-12 thumbnail">
					<a href="<%url('industry/device/detail?did=')%><%$value['device']['id']%>">
						<img src="<%url('images')%>/<%$value['device']["uid"]%>/<%env('DEVICE_DIR')%>/<%$value['device']["image"]%>" style="width:200px;height:180px;" alt="" />
						<span class="col-xs-12">
							<h5><%$value['device']['name']%></h5>
						</span>
						<span class="col-xs-12 product_des">

						</span>
						<span class="col-xs-12 device_des">
							￥<%$value['device']['minimize_price']%> - ￥<%$value['device']['maximize_price']%>
						</span>
					</a>
				</div>
			</div>
			@else
			<div class="col-xs-4">
				<div class="col-xs-12 thumbnail">
					<a href="<%url('industry/group/detail?gid=')%><%$value['userData']['id']%>">
						<img src="<%url('images')%>/<%$value['userData']["uid"]%>/<%env('OTHERS_DIR')%>/<%$value['userData']["logo"]%>" height="200" width="200" alt="" />
						<span class="col-xs-12">
							<h5><%$value['userData']['company_name']%></h5>
						</span>
						<span class="col-xs-12 product_des">
							<%mb_substr($value['userData']['description'], 0, 20)%>
						</span>
					</a>
				</div>
			</div>
			@endif
			@endforeach

			<div class="col-xs-12 text-center">
			</div>
		</div>
	</div>
</div>

@include("user.footer")
@include("user.common")
<script type="text/javascript">
	$(".gd").click(function(){
		var x = $(this).parent().next().css("display");
		if (x == "none")
		{
			$(this).parent().next().css("display","block");
			$(this).parent().css("border-bottom","none");
			$(this).html("收起");
			x = "block"
		}
		else
		{
			$(this).parent().next().css("display","none");
			$(this).parent().css("border-bottom","1px dashed #E8E8E8");
			$(this).html("更多");
		}
	});
</script>
</html>